package cn.smbms.service.provider;

import cn.smbms.pojo.Provide;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProviderService {

    public int getProviderCount(String queryProCode, String _queryProName);



    public List<Provide> getProviderList(String queryProCode, String _queryProName,
                                         int currentPageNo, int pageSize);

    /**
     * 增加供应商
     * @param provide
     * @return
     * @throws Exception
     */
    public boolean add(Provide provide);

    /**
     * 通过proId获取Provide
     * @param id
     * @return
     */
    public Provide getProvideById(String id);

    /**
     * 修改用户信息
     * @param provide
     * @return
     */
    public boolean modify(Provide provide);
}
